package com.obaamilos.accesscontrol;

import java.awt.EventQueue;

import javax.swing.JFrame;
import java.awt.Window.Type;
import javax.swing.JLabel;
import javax.swing.SwingConstants;
import java.awt.Dialog.ModalExclusionType;
import javax.swing.JTextField;
import javax.swing.JPanel;
import javax.swing.JRadioButton;
import javax.swing.JScrollPane;
import javax.swing.JTextArea;
import javax.swing.JButton;
import java.awt.event.ActionListener;
import java.awt.event.ActionEvent;

public class testegui2 {

	private JFrame frame;
	private JTextField qtdAgentesQry;
	private JTextField qtdAgentesUpd;

	/**
	 * Launch the application.
	 */
	public static void main(String[] args) {
		EventQueue.invokeLater(new Runnable() {
			public void run() {
				try {
					testegui2 window = new testegui2();
					window.frame.setVisible(true);
				} catch (Exception e) {
					e.printStackTrace();
				}
			}
		});
	}

	/**
	 * Create the application.
	 */
	public testegui2() {
		initialize();
	}

	/**
	 * Initialize the contents of the frame.
	 */
	private void initialize() {
		frame = new JFrame();
		frame.setResizable(false);
		frame.setBounds(100, 100, 500, 600);
		frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
		frame.getContentPane().setLayout(null);
		
		JLabel lblNewLabel = new JLabel("Agentes Query Localizados:");
		lblNewLabel.setHorizontalAlignment(SwingConstants.RIGHT);
		lblNewLabel.setBounds(10, 11, 164, 14);
		frame.getContentPane().add(lblNewLabel);
		
		JLabel lblAgentesUpdateLocalizados = new JLabel("Agentes Update Localizados:");
		lblAgentesUpdateLocalizados.setHorizontalAlignment(SwingConstants.RIGHT);
		lblAgentesUpdateLocalizados.setBounds(10, 36, 164, 14);
		frame.getContentPane().add(lblAgentesUpdateLocalizados);
		
		JLabel lblTipoDeAo = new JLabel("Tipo de A\u00E7\u00E3o:");
		lblTipoDeAo.setHorizontalAlignment(SwingConstants.RIGHT);
		lblTipoDeAo.setBounds(85, 70, 89, 14);
		frame.getContentPane().add(lblTipoDeAo);
		
		JLabel lblComando = new JLabel("Comando:");
		lblComando.setHorizontalAlignment(SwingConstants.LEFT);
		lblComando.setBounds(10, 95, 60, 14);
		frame.getContentPane().add(lblComando);
		
		JLabel lblResposta = new JLabel("Resposta:");
		lblResposta.setHorizontalAlignment(SwingConstants.LEFT);
		lblResposta.setBounds(10, 235, 84, 14);
		frame.getContentPane().add(lblResposta);
		
		qtdAgentesQry = new JTextField();
		qtdAgentesQry.setBounds(184, 8, 49, 20);
		frame.getContentPane().add(qtdAgentesQry);
		qtdAgentesQry.setColumns(10);
		
		qtdAgentesUpd = new JTextField();
		qtdAgentesUpd.setBounds(184, 33, 49, 20);
		frame.getContentPane().add(qtdAgentesUpd);
		qtdAgentesUpd.setColumns(10);
		
		JPanel panel = new JPanel();
		panel.setLayout(null);
		panel.setBounds(184, 58, 164, 36);
		frame.getContentPane().add(panel);
		
		JRadioButton btQuery = new JRadioButton("Query");
		btQuery.setBounds(6, 7, 62, 23);
		panel.add(btQuery);
		
		JRadioButton btUpdate = new JRadioButton("Update");
		btUpdate.setBounds(90, 7, 70, 22);
		panel.add(btUpdate);
		
		JScrollPane scrollPane = new JScrollPane();
		scrollPane.setBounds(10, 112, 472, 112);
		frame.getContentPane().add(scrollPane);
		
		JTextArea txtComando = new JTextArea();
		scrollPane.setViewportView(txtComando);
		
		JScrollPane scrollPane_1 = new JScrollPane();
		scrollPane_1.setBounds(10, 253, 472, 256);
		frame.getContentPane().add(scrollPane_1);
		
		JTextArea txtResposta = new JTextArea();
		scrollPane_1.setViewportView(txtResposta);
		
		JButton execButton = new JButton("Enviar");
		execButton.addActionListener(new ActionListener() {
			public void actionPerformed(ActionEvent arg0) {
			}
		});
		execButton.setBounds(382, 528, 89, 23);
		frame.getContentPane().add(execButton);
		
		JLabel lblResposta_1 = new JLabel("Resposta:");
		lblResposta_1.setHorizontalAlignment(SwingConstants.RIGHT);
		lblResposta_1.setBounds(22, 532, 89, 14);
		frame.getContentPane().add(lblResposta_1);
		
		JPanel panel_1 = new JPanel();
		panel_1.setLayout(null);
		panel_1.setBounds(121, 520, 164, 36);
		frame.getContentPane().add(panel_1);
		
		JRadioButton btTexto = new JRadioButton("Texto");
		btTexto.setBounds(6, 7, 62, 23);
		panel_1.add(btTexto);
		
		JRadioButton btXML = new JRadioButton("XML");
		btXML.setBounds(90, 7, 70, 22);
		panel_1.add(btXML);
	}
}
